<if condition="$vo.multilevel eq 0">
    <td>
        <a href="javascript:void(0)" class="check_pass " data-id="{BEESCRM:$vo.basic_id}"><span color="green">审核通过</span></a>
        <a href="javascript:void(0)" class="check_nopass " data-id="{BEESCRM:$vo.basic_id}"><span color="red">审核不通过</span></a>
    </td>
    <td>待审核</td>
</if>

<if condition="$vo.multilevel eq 1"><!--需要多级审核-->
    <switch name="vo.pass">
        <case value="0"> <!--初审-->
            <td>
                <a href="javascript:void(0)" class="check_pass " data-id="{BEESCRM:$vo.basic_id}"><span color="green">审核通过</span></a>
                <a href="javascript:void(0)" class="check_nopass " data-id="{BEESCRM:$vo.basic_id}"><span color="red">审核不通过</span></a>
            </td>
            <td>待审核</td>
        </case>

        <case value="1"> <!--复审-->
            <foreach name="vo.checkInfo" item="checkInfo">
                <if condition="$checkInfo.pass eq 0"> <!--多级审核存在待审核层级-->
                    <td>
                        <a href="javascript:void(0)" class="review_pass " data-basic_id="{BEESCRM:$vo.basic_id}" data-id="{BEESCRM:$checkInfo.check_id}"><span color="green">审核通过</span></a>
                        <a href="javascript:void(0)" class="review_nopass " data-basic_id="{BEESCRM:$vo.basic_id}" data-id="{BEESCRM:$checkInfo.check_id}"><span color="red">审核不通过</span></a>
                    </td>
                    <td>{BEESCRM:$vo.department_name}已审核，待{BEESCRM:$checkInfo.department_name}部门审核</td>
                </if>

                <if condition="$checkInfo.pass eq 2"> <!--多级审核存在不通过层级-->
                    <td><a href="javascript:void(0)" class=" " data-id="{BEESCRM:$vo.basic_id}"><span color="green">已审核</span></a></td>
                    <td>{BEESCRM:$checkInfo.department_name}部门审核不通过</td>
                </if>

                <if condition="$checkInfo.pass eq 1"> <!--多级审核通过-->
                    <td><a href="javascript:void(0)" class=" " data-id="{BEESCRM:$vo.basic_id}"><span color="green">已审核</span></a></td>
                    <td>审核通过</td>
                </if>
            </foreach>
        </case>

        <case value="2"> <!--初审不通过-->
            <td><a href="javascript:void(0)" class=" " data-id="{BEESCRM:$vo.basic_id}"><span color="green">已审核</span></a></td>
            <td>审核不通过</td>
        </case>
    </switch>
</if>

<if condition="$vo.multilevel eq 2"> <!--不需要多级审核-->
    <switch name="vo.pass">
        <case value="0">
            <td>
                <a href="javascript:void(0)" class="check_pass " data-id="{BEESCRM:$vo.basic_id}"><span color="green">审核通过</span></a>
                <a href="javascript:void(0)" class="check_nopass " data-id="{BEESCRM:$vo.basic_id}"><span color="red">审核不通过</span></a>
            </td>
            <td>待审核</td>
        </case>
        <case value="1">
            <td><a href="javascript:void(0)" class=" " data-id="{BEESCRM:$vo.basic_id}"><span color="green">已审核</span></a></td>
            <td>审核通过</td>
        </case>
        <case value="0">
            <td><a href="javascript:void(0)" class=" " data-id="{BEESCRM:$vo.basic_id}"><span color="green">已审核</span></a></td>
            <td>审核不通过</td>
        </case>
    </switch>
</if>